import {defineStore} from 'pinia'
import {ref} from 'vue'

export const productsStore = defineStore(
    'product',
    () => {

        const products = ref([])

        const setProducts = (c) => {
            products.value = c
        }

        return {
            products,
            setProducts
        }
    },
    {
        persist: true
    }
)